package com.frank.config.es.config;

import com.frank.config.es.config.entity.EsConfigProperties;
import com.frank.config.es.config.entity.EsRestClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author Frank Zou
 * @version v0.0.1
 * @date 2025/3/14
 * @description
 */
@Configuration
@ComponentScan(basePackages = "com.frank.config.es.config")
public class EsConfig {

    @Bean
    public EsRestClient esRestClient(EsConfigProperties esConfigProperties){
        return new EsRestClient(esConfigProperties);
    }
}
